package cn.ylz.ylmall.content.dao.persist.repository;

import cn.ylz.ylmall.content.pojo.entity.Comment;
import cn.ylz.ylmall.content.pojo.vo.CommentListItemVO;
import cn.ylz.ylmall.content.pojo.vo.CommentStandardVO;
import cn.ylz.ylmall.content.pojo.vo.CountVO;

import java.util.List;


public interface ICommentRepository {
    int insert(Comment comment);

    CommentStandardVO getStandardById(Long id);

    int deleteById(Long id);
    List<CommentListItemVO> listByContentId(Long contentId);

    CountVO countByContentId(Long contentId);


    List<CommentStandardVO> getChild(Long id);

    List<CommentListItemVO> listByParentId(Long id);
}
